﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using MarketSimulator.Utils.Maps;
using MarketSimulator.Utils.Market;
using MarketSimulator.Agents;

namespace MarketSimulator.UI
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            InitWorld();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }

        static void InitWorld()
        {
            MapBuilder mapBuilder = new MapBuilder("Resources/default.map.description.xml");
            mapBuilder.CreateWorldMap();
            ProductCreator.ReadProductTypes();

        }
    }
}
